package com.niiwoo.civet.trade.service.newRefund;

import com.niiwoo.civet.base.enums.RefundTypeEnum;
import com.niiwoo.civet.trade.dto.response.newRefund.RefundCalculateDTO;

import java.util.List;

/**
 * Created by yuanguang on 2018/5/21.
 */
public interface FeeCalcForRefundDubboService {
    /**
     * 获取应还金额
     * @param projectId
     * @param refundTypeEnum
     * @return
     */
    default RefundCalculateDTO caculateAmountRepaymentForAPP(Long projectId, RefundTypeEnum refundTypeEnum){
        throw new UnsupportedOperationException("不支持的方法");
    }
    /**
     * 获取应还金额
     * 已处理利息
     * @param projectId
     * @param periods
     * @return
     */
    default RefundCalculateDTO caculateAmountByPeriods(Long projectId, List<Integer> periods){
        throw new UnsupportedOperationException("不支持的方法");
    }
}
